package com.atguigu.gulimall.search.vo;

import com.guigui.common.dto.elastic.SkusElasticModel;
import lombok.Data;

import java.util.List;

/**
 * @author xin
 */
@Data
public class SearchResultVo {

    private List<SkusElasticModel> skusElasticModels;

    /**
     * 全部页数
     */
    private Long totalPages;

    /**
     * 当前页
     */
    private Integer pageNum;

    /**
     * th 快捷分页使用：{"1","2","3"}
     */
    private Integer[] pageNumArr;

    /**
     * 总数量
     */
    private Long total;

    /**
     * 品牌list
     */
    private List<BrandVo> brands;

    /**
     * 分类list
     */
    private List<CatalogVo> catalogs;

    /**
     * 属性list
     */
    private List<AttrVo> attrs;

    @Data
    public static class BrandVo {
        private String brandName;
        private String brandImg;
        private Long brandId;
    }

    @Data
    public static class CatalogVo {
        private Long catalogId;
        private String catalogName;
    }

    @Data
    public static class AttrVo {
        private Long attrId;
        private String attrName;
        private List<String> attrValues;
    }

}
